package net.xiangcaowuyu.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 博客：https://www.xiangcaowuyu.net
 * Description:
 * 需要执行
 * curl -X POST "http://192.168.120.180:3355/actuator/refresh"
 * 手动刷新
 *
 * @Author: 香草物语
 * DateTime: 2021-07-25 0:15
 */
@RestController
@RefreshScope
@RequestMapping("/client")
public class ClientController {

    @Value("${config.info}")
    private String configInfo;

    @GetMapping("/configInfo")
    public String configInfo() {
        return this.configInfo;
    }

}
